#pragma once
#ifndef SYPX_GROWINGBUTTON
#define SYPX_GROWINGBUTTON

#include "GuiComponent.h"
#include "Button.h"

namespace SypX
{
	///Growing Button is simply a button with built in functionality to grow in size onDown
	class SYPXAPI GrowingButton :	public Button
	{
	public:
		GrowingButton(float x, float y, float width, float height, float depth, Texture* texture);
		virtual ~GrowingButton(void);
		///global onDown logic 
		virtual void onDown(Event& e);
		///global onUp logic
		virtual void onUp(Event& e);
		///global onIn logic
		virtual void onIn( Event& e );
		///global onOut logic
		virtual void onOut( Event& e );
	private:
		float origW;
		float origH;
	};
}
#endif